// translate router.meta.title, be used in breadcrumb sidebar tagsview
export function generateTitle(title) {
  // const hasKey = this.$te('zeei.menu.' + title);
  // const translatedTitle = this.$t('zeei.menu.' + title); // $t :this method from vue-i18n, inject in @/lang/index.js
  // if (hasKey) {
  //   return translatedTitle;
  // }
  return title;
}
export function generateSkinColor(color) {
  const hasKey = this.$te('skin.' + color);
  const translatedTitle = this.$t('skin.' + color); // $t :this method from vue-i18n, inject in @/lang/index.js

  if (hasKey) {
    return translatedTitle;
  }
  return color;
}
